package com.shop.stock.service;


import com.shop.stock.dto.PraiseDto;
import com.shop.stock.entity.Article;
import com.shop.stock.entity.ArticlePraise;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.HashOperations;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.ZSetOperations;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.thymeleaf.expression.Lists;
import org.thymeleaf.expression.Maps;
import org.thymeleaf.expression.Sets;
import org.thymeleaf.util.StringUtils;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * 点赞service
 *wgc
 * @Date: 2020/3/12 15:26
 **/

public interface PraiseService {



    //获取文章的列表
    public List<Article> getAll() throws Exception;





    public Boolean praiseOn(PraiseDto dto) throws Exception;


    public Boolean praiseCancel(PraiseDto dto) throws Exception;



    //获取文章详情-点赞过的用户列表-排行榜
    public Map<String,Object> getArticleInfo(final Integer articleId,final Integer currUserId) throws Exception;





    //以用户为维度~获取用户详情以及点赞过的历史文章
    public Map<String,Object> getUserArticles(final Integer currUserId) throws Exception;



}



































